package com.xcity.game.combat.attr.response;

import com.xcity.game.combat.attr.CombatAttribute;
import com.xcity.game.combat.attr.CombatAttributeType;

public class CombatAttributeInfo {

	public CombatAttributeType type;
	public Object value;
	
	public CombatAttributeInfo(CombatAttribute attr) {
		this(attr.getType(), attr.format(attr.getValue()));
	}
	
	public CombatAttributeInfo(CombatAttributeType type, float value) {
		this(type, type.format(value));
	}
	
	public CombatAttributeInfo(CombatAttributeType type, Object value) {
		this.type = type;
		this.value = value;
	}
	
}
